]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/bin: Fix height request
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Dec 2023 17:10:34 +0000 (18:10 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Dec 2023 17:11:44 +0000 (18:11 +0100)
The request currently mixes up y-align and x-align.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3043>

src/st/st-bin.c

index a10510821f3a83e0e0a8559079665506be6391d0..9dc3291209f4e10d003101e30b74247a8af2d06f 100644 (file)
@@ -165,7 +165,7 @@ st_bin_get_preferred_height (ClutterActor *self,
     }
   else
     {
-      ClutterActorAlign x_align = clutter_actor_get_y_align (priv->child);
+      ClutterActorAlign x_align = clutter_actor_get_x_align (priv->child);
 
       _st_actor_get_preferred_height (priv->child, for_width,
                                       x_align == CLUTTER_ACTOR_ALIGN_FILL,